<?php include_once "inc/head.php"; ?>
<?php if(LoggedIn()) { ?>
<link href="/css/settings.css" rel="stylesheet" type="text/css" media="screen" />
<script src="/js/settings.js" type="text/javascript"></script>
</head>
<body>
<div id="wrapper">
	<?php include_once "inc/header.php"; ?>
	<!-- end #menu -->
	<div id="headerPageSplitter"><div></div></div>
	<div id="page">
		<div id="content">
			<div class="padding10" id="settingsWelcome">
				<img src="/assets/images/profilePics/l/noProfilePic.png" align="left" class="profileImage"/>
				<h2 class="title settingsName"><?php echo DisplayName($userID); ?>'s settings</h2>
				<div id="settingsDescription">
					From here you can change your basic account infomation, password, privacy and more.<br />
					Learn more by visiting <a href="/s.php?p=help" target='_blank'>the help center</a>
				</div>
				<div id="settingsTabs">
					<span class="tabOpen"><a href="javascript:void(0)" class="settingsTab_account settingsTab">Account</a></span>
					<span><a href="javascript:void(0)" class="settingsTab_password settingsTab">Password</a></span>
					<span><a href="javascript:void(0)" class="settingsTab_notifications settingsTab">Notifications</a></span>
					<span><a href="javascript:void(0)" class="settingsTab_profile settingsTab">Profile</a></span>
					<span><a href="javascript:void(0)" class="settingsTab_privacy settingsTab">Privacy</a></span>
				</div>
			</div>
			
			<div id="loadingTab"><b>Loading...</b><br /><br /><img src="assets/images/website/main/loadingTab.gif" /></div>

			<div id="settingsTabContent">
				<?php include 'page/settings/account.php'; ?>
			</div>
			
		<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<div id="sidebar">
			<?php include_once "inc/sidebar.php"; ?>
		</div>
		<!-- end #sidebar -->
		<div style="clear: both;height: 0px;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>
	<?php include_once "inc/footer.php"; ?>
	<!-- end #footer -->
</body>
</html>
<?php } else {
	header("Location:/rl.php?p=login");
} ?>